package com.six.core.service;



import com.baomidou.mybatisplus.extension.service.IService;
import com.six.core.entity.TbUser;
import com.six.core.vo.RegVo;
import com.six.core.vo.Result;
import com.six.core.vo.TbUserVo;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

@Service
public interface UserService extends IService<TbUser> {
    Result findAll(Integer currentPage, Integer pageSize, TbUserVo tbUserVo);

    Result addUser(RegVo regVo);

    Result updateUser(TbUser tbUser);

    Result deleteById(Integer id);

    /**
     *
     */
    int setUserIsType(Integer userId);

    Integer findByUserNum();

    TbUser findByMobile(String mobile);

    Result send(String phone);

    Result findByUserId();

    Result updateUserPassword(String mobile, String newPassword);
}
